#ifndef ZOMBIE_H
#define ZOMBIE_H
#define ENEMY_PATH ":/PVZ/images/ZombieWalk1.gif"
#define ENEMY_SPEED 5
#define ENEMY_NUM 50
#define ENEMY_INTERVAL 100
#include<QPixmap>
#include<QRect>
class zombie
{
public:
    zombie();
    //更新坐标
    void updatePosition();
    //僵尸资源对象
    QPixmap m_enemy;
    //位置
    int m_x;
    int m_y;
    int hp;
    //矩形边框
    QRect m_Rect;
    bool m_free;
    int m_speed;


};

#endif // ZOMBIE_H
